<script setup lang="ts">
import { onLaunch,onShow } from '@dcloudio/uni-app';
import config from '@/config/config';
onLaunch(() => {
	//@ts-ignore
	if (document.getElementById('Loading')) document.getElementById('Loading').remove();
	if (process.env.NODE_ENV === 'development') {
		// 开发环境 运行
		config.baseUrl = config.testUrl;
	} else {
		// 生产环境 发行
		config.baseUrl = config.productionUrl;
	}
});
onShow(()=>{
	if(!uni.getStorageSync('userInfo').token){
		uni.reLaunch({
			url:config.loginPage
		})
	}
})
</script>
<style>
view {
	user-select: text;
}
.uni-app--showleftwindow uni-main {
	position: relative;
}
.uni-app--showleftwindow uni-page-wrapper {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	padding: 15px;
	overflow-y: auto;
	box-sizing: border-box;
	background-color: #f5f5f5;
}

.uni-app--showleftwindow uni-page-body {
	width: auto;
	min-height: 100%;
	box-sizing: border-box;
	border-radius: 5px;
	box-shadow: -1px -1px 5px 0 rgba(0, 0, 0, 0.1);
	background-color: #fff;
	position: relative;
	padding: 20px;
}

.flexst {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
	flex-direction: row;
}

.flexsted {
	display: flex;
	justify-content: flex-start;
	align-items: flex-end;
	flex-wrap: wrap;
	flex-direction: row;
}

.flexed {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-wrap: wrap;
	flex-direction: row;
}

.flexbe {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	flex-direction: row;
}

.flexad {
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex-wrap: wrap;
	flex-direction: row;
}

.flexco {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	flex-wrap: wrap;
}

.flexcobe {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-direction: column;
	flex-wrap: wrap;
}

.flexcost {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-direction: column;
	flex-wrap: wrap;
}

.flexcoend {
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
	flex-direction: column;
	flex-wrap: wrap;
}

.flexce {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: row;
}

.pore {
	position: relative;
}

.flexstst {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	flex-direction: row;
}

.cor-ff {
	color: #fff;
}

.bg-ff {
	background: #fff;
}

.b {
	font-weight: bold;
}

.c9 {
	color: #999999;
}
</style>
